package com.dextrys.testing.seleniumdemo.util;

public class Config {

	public static final String FIREFOX = "*firefox";
	public static final String IEXPLORE = "*iexplore";

	public static final String URL = "http://ec2-50-17-66-243.compute-1.amazonaws.com:8080/centric/";

	public static String getBaseDir() {
		String path = Thread.currentThread().getContextClassLoader()
				.getResource("").getPath();
		return path.substring(1, path.length() - 4) + "resource/";
	}
	
	public static String getTestSuitePath() {
		String path = getBaseDir() + "test_suite/";
		return path;
	}
	
	public static String getTestCasePath() {
		String path = getBaseDir() + "test_case/";
		return path;
	}
	
	public static String getTestDataPath() {
		String path = getBaseDir() + "test_data/";
		return path;
	}

	public static String getTestSuiteFile() {
		return Config.getTestSuitePath() + "TestSuite.xls";
	}

	public static String getObjectLibrary() {
		return Config.getTestDataPath() + "ObjectLibrary.xls";
	}

	public static String getTestReport() {
		return Config.getTestDataPath() + "Report.xls";
	}
}
